﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="MPBlog.UserControls.ArticleDetailBase" %>
<%@ Import Namespace="MPBlog.Model" %>
<div class="post">
    <h2>
        <a href="ArticleDetail.aspx?articleId=<%=Article.Id %>" class="title">
            <%=Server.HtmlEncode(Article.Title)%></a></h2>
    <div class="info">
        <span class="date">
            <%=Article.PublishTime.ToString("d. MMMM yyyy")%></span>
        <div class="act">
            <span class="comments"><a rel="nofollow" href="#">浏览 (<%=Article.ReadCount %>)</a></span>
            <span class="editpost">AdminLinks</span>
            <div class="fixed">
            </div>
        </div>
        <div class="fixed">
        </div>
    </div>
    <div class="content">
        <%=Article.Content %>
        <p class="under">
            <span class="categories">CategoryLinks</span> <span class="tags">TagLinks</span>
        </p>
        <div class="fixed">
        </div>
    </div>
</div>
<h1 id="comment">
    评论</h1>
<div id="commentlist" style="display: block;">
    <asp:Repeater runat="server" ID="rptCommentList">
        <ItemTemplate>
            <div class="comment">
                <div class="author">
                    <div class="pic">
                        <img class="photo" src="~/Images/avatar.jpg" runat="server" alt="Ahmad" style="width: 36px;
                            height: 36px;"></div>
                    <div class="name">
                        <a href="http://www.ahmadfahad.com/" class="url fn">
                            <%#((Comment)Container.DataItem).CommnetAuthor %></a></div>
                </div>
                <div class="info">
                    <div class="date">
                        <%#((Comment)Container.DataItem).CreatedTime %>
                    </div>
                    <div class="act">
                    </div>
                    <div class="fixed">
                    </div>
                    <div class="content">
                        <%#((Comment)Container.DataItem).CommentContent %>
                        <div style="text-align: right;">
                            <a href="#" onclick="MPBlog.func.comment.addReplyBox(this);">回复</a></div>
                    </div>
                </div>
                <div class="fixed">
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
</div>
<div class="commentForm">
    <h2 id="addcomment">
        添加评论</h2>
    <table style="width: 100%;">
        <tbody>
            <tr>
                <td style="width: 15%;">
                    名字*
                </td>
                <td>
                    <asp:TextBox runat="server" ID="tbName"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    E-Mail*
                </td>
                <td>
                    <asp:TextBox runat="server" ID="tbMail"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:TextBox runat="server" ID="tbComment" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button runat="server" ID="btnAddComment" OnClick="OnBtnAddCommentClick" Text="添加评论"
                        UseSubmitBehavior="false" />
                </td>
            </tr>
        </tbody>
    </table>
    <input type="hidden" name="articleId" value="<%=Article.Id %>" />
    <input type="hidden" name="replyToCommentId" value="0" />
</div>
